// components/navbar/index.js
const App = getApp();

Component({
  options: {
    addGlobalClass: true,
  },
  externalClasses: ['custom-class'],
  /**
   * 组件的属性列表
   */
  properties: {
    bgColor:{
        type:String,
    },
    marginleft80:Boolean,
    scrollTop:Number,
    showLogo:{
        type:Boolean,
        value:true
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
   navHeight:0,
   navTop:0
  },
  lifetimes: {
    attached: function () {
      this.setData({
        navHeight: App.globalData.navHeight,
        navTop: App.globalData.navTop
      })
     }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    goBack(){
        wx.navigateBack({
            delta:1
        })
    }
  }
})
